package com.enterpriseDigitalPlatform.controller.renshi.role;

import com.enterpriseDigitalPlatform.dto.JsonRes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/renshi-role")
public class RoleC {
    private RoleDao roleDao;

    @Autowired
    public RoleC(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @GetMapping("/getList")
    public Object getList() {
        return new JsonRes<>(roleDao.getList());
    }
}
